package com.sjms._08_结构_适配器模式;

public class Adapter implements Container {

    BasinWater water;

    public Adapter(BasinWater water) {
        this.water = water;
    }

    @Override
    public int little() {
        return water.getWater() / 80;
    }

    @Override
    public int middle() {
        return water.getWater() / 30;
    }

    @Override
    public int big() {
        return water.getWater() / 10;
    }

}
